<?php

/**
 * Description of Administrativo_Banco
 *
 * @author Jean Brito
 */
class Application_Model_Administrativo_Banco extends Application_Model_Portable {

    protected $_server = 'ssapart';
//protected $_host = 'http://sistema.stestruturas.com.br';
    protected $_url = 'ssapart';
    protected $_dbname = 'seisp';
    protected $_user = 'master';
    protected $_password = 'careca';
    protected $_portable = 'USUFCB';
    protected $_portableField = Array(
        'id' => 'FCMCOD',
        'nome' => 'FCMDES',
        'conta' => 'FCMNUM',
        'situacao' => 'FCMSIT'
    );
    protected $_table = 'administrativo_banco';
    protected $_fields = Array(
        'id' => Array(
            'name' => 'id',
            'type' => 'identifier',
            'label' => 'Id',
        ),
        'conta' => Array(
            'name' => 'conta',
            'type' => 'smalltext',
            'label' => 'N.Conta',
        ),
        'nome' => Array(
            'name' => 'nome',
            'type' => 'name',
            'label' => 'Nome',
        ),
        'situacao' => Array(
            'name' => 'situacao',
            'type' => 'select',
            'label' => 'Situação',
            'options' => array('A' => 'Ativo', 'B' => 'Bloqueado', 'N' => 'Inativo'),
            'default' => 'A',
            'required' => true,
        ),
    );
    protected $_views = array(
        'List' => Array(
            'xtype' => 'Ext.grid.Panel',
            'columns' => array('id','conta', 'nome', 'situacao'),
            'tbar' => array('Criar', 'Eliminar')
        ),
    );

}
